package entities;

import org.newdawn.slick.Animation;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;

public class Entity {
	
	public int x;
	public int y;
	int xOff, yOff;
	Image image;
	Animation animation;
	
	public Entity(int x, int y, Animation animation) {
		this.x = x;
		this.y = y;
		this.animation = animation;
	}
	
	public Entity(int x, int y, Image image) {
		this.x = x;
		this.y = y;
		this.image = image;
	}
	
	public void draw(Graphics g) {
		image.draw(x * 32, y * 32);
	}
	
	public void animationDraw(Graphics g) {
		animation.draw(x * 32, y * 32);
	}
	
	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}
}
